import re
# s = 'admin@qq.com sierxing@123qq.com zsw@qq.com 123@qq.com'
# res = re.findall(r'\w+@qq.com',s)
# print('res=',res)
# res1 = re.findall(r'(\w+)@qq.com',s)
# print('res1=',res1)

s = 'appleappleapple appleapple apple'
# 提取连续的两个或三个apple
res = re.findall(r'(apple){2,3}',s)
print('res=',res)